<?php    
    $c = new Criteria();
    $caracteristicas = CategoriaPeer::doSelect($c);
    if ($caracteristica->getCaracteristicaId()) {
        $caracteristica_selected = $caracteristica->getCaracteristicaId();
    } else if (count($caracteristicas)>0){
        $caracteristica_selected = $caracteristicas[0]->getId();
    } else {
        $caracteristica_selected = "";
    }

    echo select_tag('caracteristica[caracteristica_id]',objects_for_select($caracteristicas,'getId','getNombre',$caracteristica_selected,'include_custom=Seleccione'));
                                                            
?>
